﻿using iemtm.WeChat.Core.Managers;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace iemtm.WeChat.Web.Entry.Areas.Admin.Controllers
{
    [Area("Admin")]
    [Route("/[controller]/[action]")]
    public class InformationController : Controller
    {
        //private readonly IWorkManager _workManager;
        //  private readonly IUserManager _userManager;
        //  private readonly IGeneratorManager _generatorManager;
        private readonly IInfoManager _infoManager;

        public InformationController(//IWorkManager workManager
             //  , IUserManager userManager
             //   , IGeneratorManager generatorManager
              IInfoManager infoManager
            )
        {
            //_workManager = workManager;
            //  _userManager = userManager;
            // _generatorManager = generatorManager;
            _infoManager = infoManager;
        }
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ImportantList()
        {
            return View();
        }

        public ActionResult DailyList()
        {
            return View();
        }

        public ActionResult WeekList()
        {
            return View();
        }

        public ActionResult MonList()
        {
            return View();
        }
        public async  Task<ActionResult> ImportantView(int WXEditorId)
        {

           var model=await _infoManager.GetWXEditorFirstAsync(w => w.WXEditorId == WXEditorId);
            return View(model);
        }
    }
}
